﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ISOView.aspx.cs" Inherits="TaoSH.View.ISOView" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="../../CSS/bootstrap/css/bootstrap.css" />
    <link rel="stylesheet" href="../../CSS/Admin/MyClass.css" />
    <script type="text/javascript" src="../../Scripts/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="../../CSS/bootstrap/js/bootstrap.js"></script>
    <script type="text/javascript" src="../../Scripts/Common.js"></script>
        <script type="text/javascript" src="js/flexpaper_flash.js"></script>

    <style>
        ul.tree_menu
        {
            margin-left: 0px;
            padding-left: 0px;
            list-style: none;
        }

            ul.tree_menu a
            {
                display: block;
                width: 100%;
                height: 32px;
                line-height: 32px;
            }

                ul.tree_menu a:hover
                {
                    background: #eee;
                    display: block;
                    width: 100%;
                    height: 32px;
                    line-height: 32px;
                    cursor:pointer;
                }

                ul.tree_menu a.active
                {
                    background: #ccc;
                    display: block;
                    width: 100%;
                    height: 32px;
                    line-height: 32px;
                    color: #fff;
                    z-index: 2;
                    background-color: #5dade2;
                }

                    ul.tree_menu a.active i
                    {
                        color: #fff;
                    }

            ul.tree_menu i
            {
                cursor: pointer;
                font-weight: bold;
                font-style: normal;
                text-align: center;
                color: #0099ff;
                font-family: FontAwesome;
                font-size: 16px;
                height: 20px;
                position: relative;
                padding-right: 5px;
                padding-left: 5px;
                margin-right: 10px;
                width: 10px;
            }

        .tree_menu .level1
        {
            margin-left: 12px;
        }

        .tree_menu .level2
        {
            margin-left: 36px;
        }

        .tree_menu .level3
        {
            margin-left: 52px;
        }

        .tree_menu .level4
        {
            margin-left: 76px;
        }

        .nopadding
        {
            padding:0px;
        }
    </style>
    <script type="text/javascript">


        $(document).ready(function () {
            ComFunJS.initForm();
            $(".wjswf").click(function () {
                $(".wjswf").removeClass("active");
                $(this).addClass("active");
                $("#wjname").text($.trim($(this).text()));
                var filename = '../../UpLoad/ISO/FLASH/' +$.trim($(this).text())+ '.swf';
                viewswf(filename);
            })


            $(".level1").click(function () {
                $(this).parent().parent().find(".tree_menu").toggle('normal');
            })

        });

        function viewswf(filename) {
            var fp = new FlexPaperViewer(
                       'FlexPaperViewer',
                       'viewerPlaceHolder', {
                           config: {
                               SwfFile: escape(filename),
                               Scale: 1.1,
                               ZoomTransition: 'easeOut',
                               ZoomTime: 0.5,
                               ZoomInterval: 0.2,
                               FitPageOnLoad: false,
                               FitWidthOnLoad: false,
                               PrintEnabled: true,
                               FullScreenAsMaxWindow: false,
                               ProgressiveLoading: false,
                               MinZoomSize: 0.2,
                               MaxZoomSize: 5,
                               SearchMatchAll: false,
                               InitViewMode: 'Portrait',
                               ViewModeToolsVisible: true,
                               ZoomToolsVisible: true,
                               NavToolsVisible: true,
                               CursorToolsVisible: true,
                               SearchToolsVisible: true,
                               localeChain: 'zh_CN'
                           }
                       });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="container-fluid maindiv" style="margin: 20px;">

            <div class="row-fluid">
                <div class="span12">
                    <div class="row-fluid">
                        <div class="span4" style="padding-top: 10px;">
                            <div class="box">
                                <div class="box-title">
                                    ISO文件管理
                                </div>
                                <div class="box-content nopadding" style="height:550px; overflow:auto ">
                                                                                <ul class="tree_menu">

                                <asp:Repeater runat="server" ID="rptypelist" OnItemDataBound="rptypelist_ItemDataBound">
                                        <ItemTemplate>
                                                <li>
                                                    <a><i class="icon-list level1"></i><span style="color:black;"> <strong>  <%# Eval("WJTpye") %></strong></span></a>
                                                    <ul class="tree_menu">
                                                        <asp:Repeater runat="server" ID="rpquestionlist">
                                                            <ItemTemplate>
                                                                <li>
                                                                    <a class="wjswf"><i class="icon-list-alt level2"></i><span>   <%# Eval("WJName") %></span></a>
                                                                </li>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                                        </ul>

                                                    </li>
                                        </ItemTemplate>
                                    </asp:Repeater>
</ul>
                                </div>

                            </div>
                        </div>
                        <div class="span8" style="padding-top: 10px;">
                            <div class="box" id="wjlb">
                                <div class="box-title" id="wjname">
                                    文件列表
                                </div>
                                <div class="box-content nopadding">
                                            <a id="viewerPlaceHolder" style=" height: 650px; display: block"></a>

                                </div>

                            </div>
                            <div class="box" id="wjnr" style="display: none">
                                <div class="box-title">
                                    文件内容
                                </div>
                                <div class="box-content nopadding">

                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <script type="text/javascript" src='../../../JqueryPlug/lhgdialog/lhgdialog.js?self=true&skin=discuz'></script>
    </form>
</body>
</html>
